package com.app.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 投诉举报
 * </p>
 *
 * @author yoominic
 * @since 2025-04-24
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("tb_complaints_report")
public class ComplaintsReport implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    /**
     * 是否匿名 1是0否
     */
    @NotNull(message = "是否匿名不能为空")
    private Integer isAnonymous;

    /**
     * 简述
     */
    @NotBlank(message = "简述不能为空")
    private String sketch;

    /**
     * 上传图片
     */
    private String image;

    /**
     * 房屋：片区、街道、楼号、院号、单元号、楼层、号
     */
    @NotBlank(message = "房屋信息不能为空")
    private String house;

    /**
     * 是否回复 1是0否
     */
    private Integer isReply;

    /**
     * 回复内容
     */
    private String replyContent;

    /**
     * 是否删除 1是0否
     */
    private Integer isDel;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private LocalDateTime updateTime;

    @TableField(exist = false)
    private List<String> imageList;
}
